# Pull base image.
FROM ubuntu

MAINTAINER Xue Mingxiang (MingxiangXue@gmail.com)

# install sslocal
RUN apt-get update && \
	apt-get install -y python-pip && \
	pip install shadowsocks

# Define mountable directories.
VOLUME ['/etc/sslocal']

COPY shadowsocks.json /etc/sslocal/shadowsocks.json

CMD ["sslocal", "-c", "/etc/sslocal/shadowsocks.json"]

EXPOSE 1080